package com.partterns.builder;

/**
 * 测试建造者
 */
public class TicketBuilderTest {
    public static void main(String[] args){
        TicketHelper helper=new TicketHelper();
        helper.buildAdult("一重山，两重山");
        helper.buildChildrenForSeat("山远天高烟水寒，相思枫叶丹。");
        helper.buildChildrenNoSeat("菊花开，菊花残。");
        helper.buildElderly("塞雁高飞人未还，一帘风月闲。");
        helper.buildSoldier("长相思·一重山");
        Object ticket=TicketBuilder.builder(helper);
        System.out.println(ticket);
    }
}
